home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.6
/
catclock.6
< prev
next >
Wrap
Text File
|
1995-07-25
|
15KB
|
331 lines
CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 4444)))) CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111))))
NNNNAAAAMMMMEEEE
catclock - analog / digital / cat clock for X
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ccccaaaattttcccclllloooocccckkkk [-_t_o_o_l_k_i_t_o_p_t_i_o_n ...]
[-mode _a_n_a_l_o_g | _d_i_g_i_t_a_l | _c_a_t]
[-alarm] [-bell] [-chime] [-file _f_i_l_e_n_a_m_e]
[-hd _c_o_l_o_r] [-hl _c_o_l_o_r]
[-catcolor _c_o_l_o_r] [-detailcolor _c_o_l_o_r] [-tiecolor
_c_o_l_o_r]
[-update _s_e_c_o_n_d_s] [-padding _n_u_m_b_e_r]
[-period _s_e_c_o_n_d_s] [-ntails _n_u_m_b_e_r] [-help]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _c_a_t_c_l_o_c_k program displays the time in analog, digital,
or cat form. The time is continuously updated at a
frequency which may be specified by the user.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
_C_a_t_c_l_o_c_k accepts all of the standard X Toolkit command line
options along with the additional options listed below:
----mmmmooooddddeeee _m_o_d_e
Determines display mode. Modes are _a_n_a_l_o_g, _d_i_g_i_t_a_l,
and _c_a_t. Analog mode displays a conventional 12
hour clock face with ``ticks'' for each minute and
stroke marks on each hour. Digital mode displays an
ascii string corresponding to the time. Cat mode
displays an image of the famous "Kit Cat (R)"
plastic clock, complete with pendulum tail. The
default is _c_a_t.
----aaaallllaaaarrrrmmmm Turns the alarm on. If the alarm file exists and
has valid alarm entries, a bell is displayed in the
clock window.
----bbbbeeeellllllll Turns the alarm bell on, sounding when an alarm is
reached.
----cccchhhhiiiimmmmeeee This option indicates that the clock should chime
once on the half hour and twice on the hour.
----ffffiiiilllleeee _a_l_a_r_m_f_i_l_e
Specifies an alternate alarm file. The default is
~/._C_a_t_c_l_o_c_k.
----hhhhdddd _c_o_l_o_r
This option specifies the color of the hands on an
analog clock. The default is _b_l_a_c_k.
----hhhhllll _c_o_l_o_r
This option specifies the color of the edges of the
Page 1 (printed 6/22/95)
CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 4444)))) CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111))))
hands on an analog clock, and is only useful on
color displays. The default is _b_l_a_c_k.
----ccccaaaattttccccoooolllloooorrrr _c_o_l_o_r
For cat mode -- determines the color of the cat's
body. The default color is _b_l_a_c_k.
----ddddeeeettttaaaaiiiillllccccoooolllloooorrrr _c_o_l_o_r
For cat mode -- determines the color of the cat's
face, paws, and belly. The default color is _w_h_i_t_e.
----ttttiiiieeeeccccoooolllloooorrrr _c_o_l_o_r
For cat mode -- determines the color of the cat's
tie. The default color is _w_h_i_t_e.
----uuuuppppddddaaaatttteeee _s_e_c_o_n_d_s
This option specifies the frequency in seconds at
which _c_a_t_c_l_o_c_k should update its display. If the
clock is obscured and then exposed, it will be
updated immediately. A value of less than 30
seconds will enable a second hand on an analog
clock. The default is _6_0.
----ppppaaaaddddddddiiiinnnngggg _n_u_m_b_e_r
This option specifies the width in pixels of the
padding between the window border and clock text or
picture. The default is _1_0 on a digital clock and _8
on an analog clock.
----ppppeeeerrrriiiioooodddd _s_e_c_o_n_d_s
Gives the period in seconds of the alarm bell
(default is _6_0).
----nnnnttttaaaaiiiillllssss _n_u_m_b_e_r
In cat mode, determines the number of tails per
``sweep'', which affects the smoothness of the
swinging pendulum tail. The default is _1_6.
----hhhheeeellllpppp This option indicates that a brief summary of the
allowed options should be printed on the standard
error.
XXXX DDDDEEEEFFFFAAAAUUUULLLLTTTTSSSS
This program understands all of the usual Xt resources as
well as the following:
mmmmooooddddeeee ((((class SSSSttttrrrriiiinnnngggg))))
Specifies the display mode -- _a_n_a_l_o_g, _d_i_g_i_t_a_l, or
_c_a_t. The default is _c_a_t.
aaaallllaaaarrrrmmmm ((((class BBBBoooooooolllleeeeaaaannnn))))
Page 2 (printed 6/22/95)
CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 4444)))) CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111))))
Specifies whether or not the alarm should be set on
startup. The default is _o_f_f.
bbbbeeeellllllll ((((class BBBBoooooooolllleeeeaaaannnn))))
Specifies whether or not a bell should be rung when
the alarm goes off. The default is _o_f_f.
cccchhhhiiiimmmmeeee ((((class BBBBoooooooolllleeeeaaaannnn))))
Specifies whether or not a bell should be rung on
the hour and half hour. The default is _o_f_f.
hhhhaaaannnnddddssss ((((class FFFFoooorrrreeeeggggrrrroooouuuunnnndddd))))
Specifies the color of the insides of the clock's
hands. The default depends on whether _r_e_v_e_r_s_e_V_i_d_e_o
is specified. If _r_e_v_e_r_s_e_V_i_d_e_o is specified the
default is _w_h_i_t_e, otherwise the default is _b_l_a_c_k.
hhhhiiiigggghhhhlllliiiigggghhhhtttt ((((class FFFFoooorrrreeeeggggrrrroooouuuunnnndddd))))
Specifies the color used to highlight the clock's
hands. The default depends on whether _r_e_v_e_r_s_e_V_i_d_e_o
is specified. If _r_e_v_e_r_s_e_V_i_d_e_o is specified the
default is _w_h_i_t_e, otherwise the default is _b_l_a_c_k.
ccccaaaattttCCCCoooolllloooorrrr ((((class FFFFoooorrrreeeeggggrrrroooouuuunnnndddd))))
Specifies the color used for the cat's body.. The
default depends on whether _r_e_v_e_r_s_e_V_i_d_e_o is
specified. If _r_e_v_e_r_s_e_V_i_d_e_o is specified the default
is _w_h_i_t_e, otherwise the default is _b_l_a_c_k.
ddddeeeettttaaaaiiiillllCCCCoooolllloooorrrr ((((class FFFFoooorrrreeeeggggrrrroooouuuunnnndddd))))
Specifies the color used for the cat's belly, eyes,
and paws. The default depends on whether
_r_e_v_e_r_s_e_V_i_d_e_o is specified. If _r_e_v_e_r_s_e_V_i_d_e_o is
specified the default is _b_l_a_c_k, otherwise the
default is _w_h_i_t_e.
ttttiiiieeeeCCCCoooolllloooorrrr ((((class FFFFoooorrrreeeeggggrrrroooouuuunnnndddd))))
Specifies the color used for the cat's bow tie. The
default depends on whether _r_e_v_e_r_s_e_V_i_d_e_o is
specified. If _r_e_v_e_r_s_e_V_i_d_e_o is specified the default
is _b_l_a_c_k, otherwise the default is _w_h_i_t_e.
uuuuppppddddaaaatttteeee ((((class IIIInnnntttteeeerrrrvvvvaaaallll))))
Specifies the frequency in seconds at which the time
should be redisplayed.
ppppaaaaddddddddiiiinnnngggg ((((class MMMMaaaarrrrggggiiiinnnn))))
Specifies the amount of internal padding in pixels
to be used. The default is _8.
ppppeeeerrrriiiioooodddd ((((class IIIInnnntttteeeerrrrvvvvaaaallll))))
Specifies the period of the alarm bell. The default
Page 3 (printed 6/22/95)
CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 4444)))) CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111))))
is _6_0.
nnnnTTTTaaaaiiiillllssss ((((class CCCCaaaarrrrddddiiiinnnnaaaallll))))
Specifies the number of tails per sweep. The
default is _1_6.
MMMMEEEENNNNUUUU
A popup menu is displayed when any mouse button is pressed
and held within the _c_a_t_c_l_o_c_k window. Selecting and
releasing the button over the ``Alarm Set'', ``Alarm Bell''
or ``Chime'' toggles their state.
The middle band of menu items are commands to perform (see
ALARM FUNCTION below). The ``Exit'' menu item causes
_c_a_t_c_l_o_c_k to exit.
AAAALLLLAAAARRRRMMMM FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN
_C_a_t_c_l_o_c_k reads the alarm file to obtain the nearest alarm.
The alarm file is consulted periodically to see if it has
been changed and there is a more recent alarm, but to
guarantee that the alarm file is read, use the menu item
``Reread Alarm File''.
To make changes to the alarm file, select menu item ``Edit
Alarm File''. The editor specified by the EDITOR
environment variable will be run on the alarm file. The
default editor is vi. Emacs users who use GNU Emacs will
have that editor appear in its own window, while "other"
emacs versions will appear in an xterm window.
After an alarm has been rung, select either the
``Acknowledge Alarm'' or the ``Reread Alarm File'' menu
items. This will terminate the current alarm and cause the
next alarm in sequence to be activated.
Each line in the file is an alarm composed of up to 4
fields. The first fields must be space separated, and the
last field (the message field) must be separated from the
previous fields with tabs. The first field is optional and
gives the day of the week for the alarm to happen (no day of
week means a daily alarm).
The next field is the time field and must contain a colon
separating the hour from the minute. The third (optional)
field may contain AM or PM (any case) specifying normal
time. If no AM/PM indication is given, 24-hour time is
assumed.
The final field is a message that is displayed when the
Page 4 (printed 6/22/95)
CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 4444)))) CCCCAAAATTTTCCCCLLLLOOOOCCCCKKKK((((1111))))
alarm goes off. The text is scrolled from right to left
within the _c_a_t_c_l_o_c_k window.
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
Mon. 1:30 pm Staff meeting
Thur. 15:30 Management meeting
11:55 am Time for lunch
EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
DDDDIIIISSSSPPPPLLLLAAAAYYYY to get the default host and display number.
EEEEDDDDIIIITTTTOOOORRRR to specify the editor to use in modifying the
alarm file.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
X(1), xrdb(1), time(3C)
BBBBUUUUGGGGSSSS
_C_a_t_c_l_o_c_k believes the system clock.
CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
Copyright 1988, Massachusetts Institute of Technology.
See _X(_1) for a full statement of rights and permissions.
AAAAUUUUTTTTHHHHOOOORRRRSSSS
Tony Della Fera (MIT-Athena, DEC)
Dave Mankins (MIT-Athena, BBN)
Ed Moy (UC Berkeley)
Deanna Hohn (DEC) created the cat pixmaps.
Philip Schneider (DEC) created the pendulum tails and eyes,
and ported the program to Motif 1.1.
Page 5 (printed 6/22/95)